import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import { setupPinia } from './store'

import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
import * as ElementPlusIconsVue from '@ant-design/icons-vue'

import cComponents from '@/components/common/index.ts'


import '@/assets/css/common.scss'
import '@/assets/css/globalel.scss';

const app = createApp(App)

import hljsVuePlugin  from '@b/designer/highlight';
app.use(hljsVuePlugin);

setupPinia(app) // 注册pinia

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(Antd)
app.use(router)
app.use(cComponents)
app.mount('#app')
